﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HNQXYJ.Model;
using HNQXYJ.BLL;

namespace HNQXYJ.HN_City
{
    public partial class CityMgr : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataBindCityList();
            }
        }

        private void DataBindCityList()
        {
            List<HCity> list = new CityBLL().GetCityListAll();
            if (list != null)
            {
                this.RpCity.DataSource = list;
                this.RpCity.DataBind();
            }
            else
            {
                this.Label1.Text = "城市列表无数据";
            }
        }
      

     
    }
}